import { createRouter, createWebHistory } from 'vue-router'

export const route = [
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login.vue'),
  },
  {
    path: '/',
    name: '/',
    component: () => import('@/views/dashboard.vue'),
  },
  {
    path: '/user',
    name: 'user',
    component: () => import('@/views/user.vue'),
  },
  {
    path: '/test',
    name: 'test',
    component: () => import('@/views/test.vue'),
  },
  {
    path: '/dashboard',
    name: 'dashboard',
    component: () => import('@/views/dashboard.vue'),
  },
  {
    path: '/service',
    name: 'service',
    component: () => import('@/views/service.vue'),
  },
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: route,
})

export default router
